<div class="studentMinorities index">
<h2><?php __('StudentMinorities');?></h2>
<!-- Table Navigation -->
<div class="tablenav">
    <div class="batchactions"></div>
    <?php echo $this->element('pager'); ?>
</div>
<!-- Table Content Area -->
<table class="table fixed">
    <thead title="<?php __('Click a column to sort data table'); ?>">
        <tr>
            <th  width="3%" class="checkbox" title="<?php __('Click to select/deselect all records'); ?>"><input type="checkbox" class="checkbox"/></th>
            <th><?php e($paginator->sort('id'));?></th>
            <th><?php e($paginator->sort('name'));?></th>
            <th><?php e($paginator->sort('student_count'));?></th>
            <th class="actions"><?php __('Actions'));?></th>
        </tr>
    </thead>
    <tfoot title="<?php __('Click a column to sort data table'); ?>">
        <tr>
            <th class="checkbox" title="<?php __('Click to select/deselect all records'); ?>"><input type="checkbox" class="checkbox"/></th>
            <th><?php e($paginator->sort('id'));?></th>
            <th><?php e($paginator->sort('name'));?></th>
            <th><?php e($paginator->sort('student_count'));?></th>
            <th class="actions"><?php __('Actions'));?></th>
        </tr>
    </tfoot>
    <tbody>
        <?php foreach ($studentMinorities as $i=>$studentMinority):
            $class = $i % 2 == 0 ? ' class="altrow"' : ''; ?>
        <tr<?php e($class);?>>
            <td><?php e($studentMinority['StudentMinority']['id']); ?></td>
            <td><?php e($studentMinority['StudentMinority']['name']); ?></td>
            <td><?php e($studentMinority['StudentMinority']['student_count']); ?></td>
            <td class="actions">
                <?php e($html->link(__('View', true), array('action' => 'view', $studentMinority['StudentMinority']['id']))); ?>
                <?php if($user['group'] != 'student'): ?>
                    <?php e($html->link(__('Edit', true), array('action' => 'edit', $studentMinority['StudentMinority']['id']))); ?>
                    <?php e($html->link(__('Delete', true), array('action' => 'delete', $studentMinority['StudentMinority']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $studentMinority['StudentMinority']['id']))); ?>
                <?php endif; ?>
            </td>
        </tr>
        <?php endforeach; ?>
    <tbody>
</table>
</div>
<div class="actions">
    <ul>
        <li><?php e($html->link(__('New StudentMinority', true), array('action' => 'add'))); ?></li>
    </ul>
</div>
